#pragma once

#include <ClanLib/core.h>

namespace AudioEngine
{
	class Producer
	{
	public:
		CL_Signal_v0 sig_finished;
		static const int sample_rate = 44100;

		virtual float get_sample(int index) const = 0;
		virtual void key_release() { } // can trigger release part of envelope
	};
}